package com.atguigu.orderservice.client;

import com.atguigu.orderservice.client.impl.EduFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "service-edu",fallback = EduFileDegradeFeignClient.class)
@Component
public interface EduClient {

    @GetMapping("/eduservice/course/getCourseInfoById/{courseId}")
    public Map<String,String> getCourseInfoById(@PathVariable("courseId") String courseId);
}
